#include "input.h"

void get_input() {
    SDL_Event event;

    while (SDL_PollEvent(&event)) {
        switch (event.type) {
            case SDL_QUIT:
                exit(0);
                break;

            case SDL_KEYDOWN:
                switch (event.key.keysym.sym) {
                    case SDLK_ESCAPE:
                        if (event.key.keysym.mod & KMOD_CTRL)
                            exit(0);
                        break;
                    case SDLK_q:
                        if (event.key.keysym.mod & KMOD_CTRL)
                            exit(0);
                        break;
                    case SDLK_F4:
                        if (event.key.keysym.mod & KMOD_ALT)
                            exit(0);
                        break;
                    case SDLK_w:
                        break;
                    case SDLK_a:
                        break;
                    case SDLK_s:
                        break;
                    case SDLK_d: {
                        break;
                    }
                    default:
                        break;
                }
                break;

            default:
                break;
        }
    }
}